Getting Started topic

Create a new application

To start a new Bullseye2D application, run the following command:

bullseye2d create ./my_new_game

You will be prompted to enter a location where you want to create the new app. A directory will be created for you and it will also be the project name.

The name should be all lowercase, with underscores to separate words, just_like_this. Use only basic Latin letters and Arabic digits: a-z0-9_.

When the project was successfuly created navigate into the directory and start the webserver:

cd ../my_new_game
webdev serve

Open your browser and go to: http://localhost:8080.

Customizing webdev serve:

# Automatically refresh browser when the app was rebuild
webdev serve --auto refresh

# Specify a port
webdev serve web:8081

# Specify a hostname to make it accessible on your local network
webdev serve --hostname=0.0.0.0

# Disable live reload
webdev serve --no-live-reload

# Enable debugging features for Dart DevTools
webdev serve --debug

Refer to the webdev documentation for more options: webdev serve --help.

Production Builds

When you're ready to deploy your application, you'll want to create an optimized production build.

# By default that generates an optimized production build in the `build` folder
webdev build

Properties

dartDoc bool? Features Cheatsheet Getting Started My first App
This is just a unused variable to enforce the dart doc generator to include topics that aren't attached to a specific classes or functions. {@category Getting_Started} {@category TutorialFirstApp} {@category Features} {@category Cheatsheet}
getter/setter pair